// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import Router from 'vue-router'
import routes from './router'
import axios from 'axios'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css' //引入element-ui css样式
import App from './App'

Vue.use(ElementUI)
Vue.use(Router)
Vue.config.productionTip = false
Vue.prototype.$axios=axios

//定义路由
const router = new Router({
	routes
})

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,//将路由挂载到Vue实例
  components: { App },
  template: '<App/>'
})
